[{if $smarty.session.access > 0}]
<table id="shoppingTable" class="sortable">
  <thead>
      <tr><th>Type Name</th>
      <th>Quantity</th></tr>
  </thead>
  <tbody>
    [{foreach from=$bpcs item=bpc key=id name=bpclist}]
    <tr>
      <td><a href="?a=invent&t=[{$bpc.typeID}]&q=[{$bpc.quantity*10}]&act=1">[{$bpc.typeName}]</a></td>
      <td>[{$bpc.quantity}]</td>
    </tr>
    [{/foreach}]
    <tr>
      <td class="office"><a href="?a=invent&t=all&q=10&act=1">ALL</a></td>
      <td align="center">-</td>
    </tr>
  </tbody>
</table>
[{literal}]<script language="javascript" type="text/javascript">
  var jobTableFilters = {
    col_0: "select",
    sort_select: true,
    btn: false,
    loader: true,
    loader_text: "Filtering data...",
    loader_html: '<img src="./images/loader.gif" alt="" ' +
      'style="vertical-align:middle;" /><h3>Loading...</h3>',
    display_all_text: "< Show all >"
  }
  setFilterGrid("shoppingTable",jobTableFilters);
</script>[{/literal}]
[{/if}]